Running Docker

Docker Login

Login to the container-registry.oracle.com to pull the required images using the below command:

# docker login container-registry.oracle.com
Username
Password

Login successful.

Use your Oracle SSO username and password to log in to the Oracle Registry.

To build the image and run the container:

  1. Go to the upgradeutility folder where docker file is present.

    upgradeutility folder where docker file

  2. Build the docker image using the below command:

    docker build --network=host -t upgradeutility:12.2.0.0.

  3. Run the container using the below command:

    The master password which was used to encrypt the password earlier will be set as system property using docker run command via SECURE_CONFIG_AES_MASTER_PWD=myMasterPasswordForEncryption

    docker run -d --restart unless-stopped --network=host --privileged -v /scratch/oipa/docker/upgradeutility/conf/:/usr/local/upgradeutility/conf/ -v /scratch/oipa/docker/upgradeutility/logging.properties:/usr/local/upgradeutility/logging.properties -e SECURE_CONFIG_AES_MASTER_PWD=myMasterPasswordForEncryption --name upgradeutility upgradeutility:12.2.0.0

  4. Make sure the container starts without any exception. To check the logs use

    docker logs -f upgradeutility

    Upgradeutility Exception